package com.example.test20240915;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class BeanConfig {
    @Bean("u1")
    public User user1(){
        User user = new User();
        return user;
    }

    public User user2() {
        User user = new User();

        return user;
    }
}

